﻿<%@ Page Title="" Language="C#" MasterPageFile="~/UI/HRManagerUI/HrManager.Master"
    AutoEventWireup="true" CodeBehind="AddEmployeePhoto.aspx.cs" Inherits="HRM.UI.HRManagerUI.EmpModule.AddEmployeePhoto" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="mainContentBody" runat="server">

    <link href="../../../Styles/Employee/AddEmployeePhotoCss.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" language="javascript">

        function CheckField() {
            if (document.getElementById("<%=txtEmployeeCode.ClientID%>").value == "") {
                document.getElementById("<%=lblImagemsg.ClientID%>").textContent = "Please Enter Employee Code!";
                document.getElementById("<%=lblImagemsg.ClientID%>").style.color = "red";
                document.getElementById("<%=txtEmployeeCode.ClientID%>").focus();
                return false;
            }

            return true;
        }
  

    </script>
    <fieldset>
        <legend>Upload Employee Photo</legend>
        <div align="center">
            <asp:Label runat="server" ID="lblImagemsg" CssClass="msgTxt"></asp:Label></div>
        <table class="PhotoTB">
            <tr>
                <td class="showTextboxTD">
                    <table class="PhotoTextTB">
                        <tr>
                            <td class="Label">
                                <asp:Label ID="Label1" runat="server">Employee Code</asp:Label>
                            </td>
                            <td class="Field">
                                <%-- <asp:Label runat="server" ID="MsgEmpCode" CssClass="CodeMsg" Text="Faruqe-1001"></asp:Label>--%>
                                <p id="employeeCode" runat="server" class="CodeMsg">
                                </p>
                            </td>
                        </tr>
                        <tr id="textboxCode" runat="server">
                            <td class="Label">
                                Employee Code
                            </td>
                            <td class="Field">
                                <input type="text" id="txtEmployeeCode" class="textboxinput" runat="server" />
                            </td>
                        </tr>
                        <tr>
                            <td class="Label">
                                Photo
                            </td>
                            <td class="Field">
                                <input type="file" id="uploadimage" class="inputUplodbox" runat="server" />
                            </td>
                        </tr>
                        <tr>
                            <td>
                            </td>
                            <td>
                                <table class="PhotoFieldTB">
                                    <tr>
                                        <td>
                                            <input type="submit" id="btnUploadPhoto" runat="server" onserverclick="SavePhoto"
                                                value="Save Photo" class="btnCss" onclick="return CheckField()" />
                                        </td>
                                    </tr>
                                </table>
                            </td>
                        </tr>
                    </table>
                </td>
                <td class="showimageTD">
                    <asp:Image ID="ShowEmpPhoto" runat="server" ImageUrl="../../../images/images.jpg"
                        CssClass="showImage" />
                </td>
            </tr>
        </table>
    </fieldset>
</asp:Content>
